package com.tledu.classes;

/**
 * 促销
 */
public class Promotion {
    // 打折的比例
    private double discount = 0.9;

    public Promotion() {

    }

    public Promotion(double discount){
        this.discount = discount;
    }

    // 打折操作
    public double discountOper(double price) {
        this.privateMethod();
        return price * discount;
    }

    private void privateMethod() {
        System.out.println("私有方法打印");
    }

}
